<template>
    <div class="">
        <input type="text" v-model="cityName">
    </div>
</template>

<script setup>
import { watch,ref } from 'vue';
const cityName = ref('www')
watch(cityName,(newVal,oldVal)=>{
    console.log(newVal,oldVal);
    
})
</script>

<style scoped></style>
